// with polyfills
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import App from './App.vue'
import * as Sentry from '@sentry/browser';
import { Vue as VueIntegration } from '@sentry/integrations';
import router from './router'
import store from './store/'
import { VueAxios } from './utils/request'
// mock
// WARNING: `mockjs` NOT SUPPORT `IE` PLEASE DO NOT USE IN `production` ENV.
// import './mock'
import bootstrap from './core/bootstrap'
import moment from 'moment'
import 'moment/locale/zh-cn'
moment.locale('zh-cn');
import './core/lazy_use'
import './permission' // permission control   //有权限后使用本句
import './utils/filter' // global filter
import './components/global.less'
import Cookies from 'js-cookie';
// import '../public/static/ue/ueditor.config.js'
// import '../public/static/ue/ueditor.all.min.js'
// import '../public/static/ue/lang/zh-cn/zh-cn.js'
// import '../public/static/ue/ueditor.parse.js'
// import '../public/static/ue/themes/default/css/ueditor.css'
//打印
import print from '@/utils/print'
// 引入Echarts
import VCharts from 'v-charts'
import echarts from 'echarts'
// 引入echarts-5.0
// import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
import publicFunction from '@/utils/publicFunction.js'
Vue.prototype.Utils = publicFunction

import publicMixins from '@/utils/publicMixins.js'
Vue.mixin(publicMixins);


Vue.config.productionTip = false
// mount axios Vue.$http and this.$http
Vue.use(moment); //实例
Vue.use(VueAxios)
Vue.use(VCharts)
Vue.use(print)
Vue.use(echarts)
new Vue({
  router,
  store,
  created: bootstrap,
  render: h => h(App)
}).$mount('#app')
Vue.prototype.$moment = moment;
// Sentry.init({
//   dsn: 'http://7042912ed1754f6580b2009231a72dbf@122.51.233.202:9000/3',
//   integrations: [new VueIntegration({ Vue, attachProps: true })],
// });

